package edu.langnan.xiaoli.service.impl;

import edu.langnan.xiaoli.mapper.StudentMapper;
import edu.langnan.xiaoli.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author cql
 */
@Service
public class TaskServiceImpl implements TaskService {

    @Autowired
    private StudentMapper studentMapper;

    @Async
    @Override
    public void updateStudentInfo(Integer stuId, String avatar, String openId, Date now) {
        studentMapper.updateInfo(stuId, avatar, openId, now);
    }
}
